package com.battery.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.battery.common.annotation.Excel;
import com.battery.common.core.domain.BaseEntity;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 积分流水对象 ws_points_detail
 *
 * @author battery
 * @date 2021-03-24
 */
@Table(name = "ws_points_detail")
public class PointsDetail {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @Id
    private String id;

    /**
     * 积分类型
     */
    @Excel(name = "积分类型")
    private Integer pointType;

    /**
     * 积分
     */
    @Excel(name = "积分")
    private Integer points;

    /**
     * 对应租借记录ID
     */
    private String usedId;

    /**
     * 对应支付订单ID
     */
    private String orderId;

    /**
     * 租借用户ID
     */
    private String appUserId;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 积分来源者类型
     */
    @Excel(name = "积分来源者类型")
    private Integer sourceType;

    /**
     * 积分来源者ID
     */
    private String sourceId;

    /**
     * 积分获得者类型
     */
    @Excel(name = "积分获得者类型")
    private Integer winnerType;

    /**
     * 积分获得者ID
     */
    private String winnerId;


    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setPointType(Integer pointType) {
        this.pointType = pointType;
    }

    public Integer getPointType() {
        return pointType;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public Integer getPoints() {
        return points;
    }

    public void setUsedId(String usedId) {
        this.usedId = usedId;
    }

    public String getUsedId() {
        return usedId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setAppUserId(String appUserId) {
        this.appUserId = appUserId;
    }

    public String getAppUserId() {
        return appUserId;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setWinnerType(Integer winnerType) {
        this.winnerType = winnerType;
    }

    public Integer getWinnerType() {
        return winnerType;
    }

    public void setWinnerId(String winnerId) {
        this.winnerId = winnerId;
    }

    public String getWinnerId() {
        return winnerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pointType", getPointType())
                .append("points", getPoints())
                .append("createTime", getCreateTime())
                .append("usedId", getUsedId())
                .append("orderId", getOrderId())
                .append("appUserId", getAppUserId())
                .append("remarks", getRemarks())
                .append("sourceType", getSourceType())
                .append("sourceId", getSourceId())
                .append("winnerType", getWinnerType())
                .append("winnerId", getWinnerId())
                .toString();
    }
}
